@Deprecated final class SimpleBufferingAsyncClientHttpRequest extends AbstractBufferingAsyncClientHttpRequest
ClientHttpRequest
implementation that uses
standard JDK facilities to execute buffered requests. Created via the
SimpleClientHttpRequestFactory
.SimpleClientHttpRequestFactory.createRequest(java.net.URI, org.springframework.http.HttpMethod)
Modifier and Type | Field and Description |
---|---|
private java.net.HttpURLConnection |
connection
Deprecated.
|
private boolean |
outputStreaming
Deprecated.
|
private AsyncListenableTaskExecutor |
taskExecutor
Deprecated.
|
Constructor and Description |
---|
SimpleBufferingAsyncClientHttpRequest(java.net.HttpURLConnection connection,
boolean outputStreaming,
AsyncListenableTaskExecutor taskExecutor)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected ListenableFuture<ClientHttpResponse> |
executeInternal(HttpHeaders headers,
byte[] bufferedOutput)
Deprecated.
Abstract template method that writes the given headers and content to the HTTP request.
|
java.lang.String |
getMethodValue()
Deprecated.
Return the HTTP method of the request as a String
|
java.net.URI |
getURI()
Deprecated.
Return the URI of the request.
|
executeInternal, getBodyInternal
assertNotExecuted, executeAsync, getBody, getHeaders
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMethod
private final java.net.HttpURLConnection connection
private final boolean outputStreaming
private final AsyncListenableTaskExecutor taskExecutor
SimpleBufferingAsyncClientHttpRequest(java.net.HttpURLConnection connection, boolean outputStreaming, AsyncListenableTaskExecutor taskExecutor)
public java.lang.String getMethodValue()
HttpRequest
public java.net.URI getURI()
HttpRequest
null
)protected ListenableFuture<ClientHttpResponse> executeInternal(HttpHeaders headers, byte[] bufferedOutput) throws java.io.IOException
AbstractBufferingAsyncClientHttpRequest
executeInternal
in class AbstractBufferingAsyncClientHttpRequest
headers
- the HTTP headersbufferedOutput
- the body contentjava.io.IOException